<?php 
require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
form_pr('getResults','','','post');
?>
<div class="title">
      Entre 
       <?php mn_field('date','ED','Time',date("Y-m-01"),'getResults','8','','');
       echo ' e ';
	   mn_field('date','ED','TimeEnd','','getResults','8','',''); 
       mn_field('text','ED','TimeType','Data Pagamento','','14','','" disabled readonly="');
       echo ' Custos por ';
       mn_field('hselect','ED','Group','',"Lojas;Funcionarios#Office;User",'','','');
	   mn_field('hselect','ED','Group2','',"Natureza;Fornecedor#2;1",'','','');
       echo ' Tipo ';
       mn_field('hselect','ED','Typo','',"Grelha;Listagem;Balancete;Balancete Lojas#1;2;3;4",'','','');
       mn_field('hselect','ED','Offices','','Todos',"SELECT * FROM main_offices WHERE Type IN (1,2,5) = '1' ORDER BY name ASC",'','');
       mn_field('button','ED','Consult','Ver','','','','" onclick="
				document.getResults.action=\'Modules/CentrodeCustos/Templates/default.php\';
				subform(\'getResults\',\'ReportDisplay\');');
 mn_field('button','ED','print','Imprimir','','','','" onclick="printdiv(\'ReportDisplay\');');?></div>
<div id="ReportDisplay"></div>
</form>